<template>
  <el-tag
    v-if="new Date().getTime() > new Date(endTime).getTime()"
    :type="type"
  >
    {{ text }}
  </el-tag>
</template>
<script>
export default {
  name: 'Expired',
  props: {
    endTime: {
      type: String,
      default: ''
    },
    type: {
      type: String,
      default: 'danger'
    },
    text: {
      type: String,
      default: '已过期'
    }
  }
}
</script>
